﻿using Himp.Setl;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp.DependencyInjection;

namespace Himp.Platform
{
    public class SetlSettingsQuery : ISingletonDependency
    {
        private readonly IServiceProvider _serviceProvider;

        public SetlSettingsQuery(IServiceProvider serviceProvider)
        {
            _serviceProvider = serviceProvider;
        }

        public async Task<PagedResultDto<SetlTypeDto>> GetSetlTypeListAsync(SetlTypeInput input)
        {
            var setlTypeService = _serviceProvider.GetService<ISetlTypeService>();

            return await setlTypeService.GetListAsync(input);
        }
    }
}
